package org.anotes.springexample.aop.example2;

/**
 * User: gmc
 * Date: 14/04/12
 */
public class LockableImpl implements Lockable {
    private boolean lock = false;

    @Override
    public boolean isLocked() {
        return lock;
    }

    @Override
    public void lock() {
        lock= true;
    }

    @Override
    public void unlock() {
        lock =false;
    }
}
